package com.meizi.experimentcode.dsl;

import lombok.Data;

/**
 * @author Administration
 * @date 2022/3/10 - 11:15 - 星期四
 * @project lambda
 * @package com.meizi.experimentcode.dsl
 * @by 晨
 */
@Data
public class Trade {

    public enum Type {BUY, SELL}

    private Type type;

    private Stock stock;

    private int quantity;

    private double price;

    public double getValue () {
        return quantity * price;
    }
}
